package com.ruoyi.project.system.departmentcontacts.service.impl;

import java.util.List;

import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.departmentcontacts.mapper.VeDepartmentcontactsMapper;
import com.ruoyi.project.system.departmentcontacts.domain.VeDepartmentcontacts;
import com.ruoyi.project.system.departmentcontacts.service.IVeDepartmentcontactsService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-06
 */
@Service
public class VeDepartmentcontactsServiceImpl implements IVeDepartmentcontactsService 
{
    @Autowired
    private VeDepartmentcontactsMapper veDepartmentcontactsMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param ContactID 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public VeDepartmentcontacts selectVeDepartmentcontactsByContactID(Long ContactID)
    {
        return veDepartmentcontactsMapper.selectVeDepartmentcontactsByContactID(ContactID);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param veDepartmentcontacts 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
//    @DataScope(deptAlias = "d",userAlias = "d")
    public List<VeDepartmentcontacts> selectVeDepartmentcontactsList(VeDepartmentcontacts veDepartmentcontacts)
    {
        return veDepartmentcontactsMapper.selectVeDepartmentcontactsList(veDepartmentcontacts);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param veDepartmentcontacts 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertVeDepartmentcontacts(VeDepartmentcontacts veDepartmentcontacts)
    {
        return veDepartmentcontactsMapper.insertVeDepartmentcontacts(veDepartmentcontacts);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param veDepartmentcontacts 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateVeDepartmentcontacts(VeDepartmentcontacts veDepartmentcontacts)
    {
        return veDepartmentcontactsMapper.updateVeDepartmentcontacts(veDepartmentcontacts);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ContactIDs 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVeDepartmentcontactsByContactIDs(String ContactIDs)
    {
        return veDepartmentcontactsMapper.deleteVeDepartmentcontactsByContactIDs(Convert.toStrArray(ContactIDs));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param ContactID 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVeDepartmentcontactsByContactID(Long ContactID)
    {
        return veDepartmentcontactsMapper.deleteVeDepartmentcontactsByContactID(ContactID);
    }
}
